public class Instrument {
	public void play() {

		System.out.println("弹奏乐器！");

	}

}

class Wind extends Instrument {// 复写play方法

	public void play() {

		System.out.println("弹奏Wind!");

	}

	public void play2() {

		System.out.println("调用wind的play2");

	}

}

class Brass extends Instrument {// 复写play方法

	public void play() {

		System.out.println("弹奏brass!");

	}

	public void play2() {

		System.out.println("调用brass的play2！");

	}

}

class Music {
	public static void tune(Instrument i) {

		i.play();

	}


	
	
	public static void main(String[] args) {

//		Wind w = new Wind();
//
////		Brass b = new Brass();
//		Instrument i = w;
//		tune(w);
//
////		tune(b);
		Instrument instrument= new Wind();
		((Wind) instrument).play2();
	}

}
